﻿using B.S.Material.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations.Schema;

namespace B.S.Material.Wirth.Api.Applications.Command.MaterialsPickingDetailCommand
{
    public class UpdateMaterialsPickingDetailCommand : IRequest<ApiResult<int>>
    {

        public int DetailID { get; set; }
        /// <summary>
        /// 关联生产领料主表的ID
        /// </summary>
        public int IssueID { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 领料数量
        /// </summary>
        public int IssueQuantity { get; set; }
        /// <summary>
        /// 出库库管
        /// </summary>
        public int Warehouse { get; set; }
        /// <summary>
        /// 现有库存
        /// </summary>
        public int CurrentStock { get; set; }
        /// <summary>
        /// 交货日期
        /// </summary>
        public DateTime DeliveryDate { get; set; }
        /// <summary>
        /// 备注2
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        /// 领料方式
        /// </summary>
        public string PickupMethod { get; set; }
        /// <summary>
        /// 生产领料主键
        /// </summary>
        public int PickingId { get; set; }
        [ForeignKey("PickingId")]
        /// <summary>
        /// 关联单据
        /// </summary>
        public string RelatedDoc { get; set; }
        /// <summary>
        /// 删除
        /// </summary>
        public bool IsDel { get; set; }
    }
}
